package models.PokerTP;

public enum PartPhase {
	ENTRANCE_FEE, // faza 1.
	DEAL, // faza 2.
	FIRST_BIDDING, // faza 3.
	CARD_EXCHANGE, // faza 4.
	SECOND_BIDDING, // faza 5.
	SHOW_CARDS, // faza 6.
	SHOW_WINNERS; // faza 7.
	
	public PartPhase next() {
		PartPhase phases[] = PartPhase.values();
		int index = this.ordinal();
		index = ++index % phases.length;
		return phases[index];
	}
}
